projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
914f7bd
)
textview: Fix coordinates when background drawing of text node
author
Benjamin Otte
<otte@redhat.com>
Sat, 27 Feb 2016 02:26:52 +0000
(
03:26
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 27 Feb 2016 02:27:39 +0000
(
03:27
+0100)
Fixes black areas in source view of gtk-demo.
gtk/gtktextview.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextview.c
b/gtk/gtktextview.c
index 3424c4756b71751a116769104d53b27602d19eea..d36570c4e4f02328e2552432d5d3a681d51b2a0d 100644
(file)
--- a/
gtk/gtktextview.c
+++ b/
gtk/gtktextview.c
@@
-5861,7
+5861,7
@@
draw_text (cairo_t *cr,
context = gtk_widget_get_style_context (widget);
gtk_style_context_save_to_node (context, text_view->priv->text_window->css_node);
gtk_render_background (context, cr,
- -priv->xoffset, -priv->yoffset,
+ -priv->xoffset, -priv->yoffset
- priv->top_border
,
MAX (SCREEN_WIDTH (text_view), priv->width),
MAX (SCREEN_HEIGHT (text_view), priv->height));
gtk_style_context_restore (context);